﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CqusInfo.DAL.Question;

namespace CqusInfo.BLL.Question
{
    public class Question_CommentBLL:Inteface.IQuestion_CommentBLL
    {
        private static readonly Question_CommentDAL qcDal = new Question_CommentDAL();
        public Int32 GetCounts(bool isDel)
        {
            return qcDal.GetCounts(isDel);
        }

        public List<RAL.Question.Question_CommentModel> Query(DateTime startTime, DateTime endTime, bool isDel, Int32 page, Int32 takeItem)
        {
            return qcDal.Query(startTime, endTime, isDel, page, takeItem);
        }

        public List<RAL.Question.Question_CommentModel> Query(string qcId)
        {
            return qcDal.Query(qcId);
        }

        public List<RAL.Question.Question_CommentModel> Query(string userName, string qId, bool isDel, Int32 page, Int32 takeItem)
        {
            return qcDal.Query(userName, qId, isDel, page, takeItem);
        }

        public List<RAL.Question.Question_CommentModel> Query(Int32 page, Int32 takeItem, bool isDel)
        {
            return qcDal.Query(page, takeItem, isDel);
        }

        public Int32 Add(string qId, RAL.Question.Question_CommentModel model)
        {
            return qcDal.Add(qId, model);
        }

        public Int32 Delete(string qcId, bool isDel, bool trueDel)
        {
            return qcDal.Delete(qcId, isDel, trueDel);
        }
    }
}
